package com.neno.service.impl;

import com.neno.entity.Person;
import com.neno.repository.PersonRepository;
import com.neno.service.PersonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.sql.Date;
import java.sql.Timestamp;
import java.util.List;

/**
 * @Author: root
 * @Date: 2018/11/10 0:20
 */
@Service
public class PersonServiceImpl implements PersonService {
    @Autowired
    private PersonRepository personRepository;

    @Override
    public List<Person> getPersonList(String createTime) {
        return personRepository.findPersonByCreateTime(Timestamp.valueOf(createTime));
    }
}
